<!DOCTYPE html>
<html>
<head>
    <title>Weather Forecast</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" th:href="@{/home.css}"/>
</head>
<body>
<div class="bg-image">
    <div class="main">
        <div class="grey-box">
            <h1 class="text-center">Приложение погоды</h1>
            <h2 class="text-center">Смотрите информацию о погоде в любой точке мира!</h2>
            <div class="d-flex justify-content-center vh-40">
                <form action="#" th:action="@{/weather}" th:object="${locationModel}" method="post">
                    <label>Город</label>
                    <input type="text" th:field="*{city}" required>
                    <label>Область</label>
                    <input type="text" th:field="*{state}">
                    <label>Страна</label>
                    <input type="text" th:field="*{country}" required>
                    <div class="submit-button d-flex justify-content-center">
                        <button type="submit">Отправить</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
</body>
</html>
